<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%@ include file="/WEB-INF/jsp/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的账户</title>
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/jsp/common_css.jsp"%>
<%@ include file="/WEB-INF/jsp/common_js.jsp"%>
</head>
<script type="text/javascript">

</script>
<body> 
<form name="itemsForm" action="${pageContext.request.contextPath }/user/queryUser.action" method="post">

<table width="100%" border=1>
<div align="center">${customer.username}的账户详情</div>
<tr>
<%-- <td>
商品类别：
<select>
	<c:forEach items="${itemsType }" var="item">
			<option value="${item.key }">${item.value }</option>
	
	</c:forEach>
	
</select>
</td> --%>
<td><!-- <input type="submit" value="查询"/> -->
<shiro:hasPermission name="account:create">
<a href="${baseurl}/account/addAccountView.action?id=${customer.id}">
申办卡
</shiro:hasPermission>
</a>
</td>
</tr>
</table>
<table width="100%" border=1>
<tr>	
	<td>卡号</td>
	<td>余额</td>
	<td>最近交易记录</td>
	<td>状态</td>
	<td>操作</td>
</tr>
<c:forEach items="${list }" var="item" varStatus="s">
<tr>
	<td><input type="text" name="list[${s.index }].usercode" value="${item.cardid }" disabled="disabled"/></td>
	<td><input type="text" name="list[${s.index }].customerphone" value="${item.openmoney }" disabled="disabled"/></td>
	<td><input type="text" name="list[${s.index }].customeraddress" value="" disabled="disabled"/></td>
	<td><div  id="status">${item.cardAvailabel}</div></td>
	<td>
	<shiro:hasPermission name="account:freeze">
	<c:if test="${item.availabel==1}">
	<a href="${baseurl}account/freeze.action?cardId=${item.cardid}&userid=${customer.id}">冻结</a>
	</c:if>
	<c:if test="${item.availabel==0}">
	  <a href="${baseurl}account/freeze.action?cardId=${item.cardid}&userid=${customer.id}">解冻</a>
	</c:if>
     </shiro:hasPermission>
     <shiro:hasPermission name="account:delete">
     <a href="${baseurl}account/freeze.action?id=${item.customerid}">删除</a>
     </shiro:hasPermission>
  </td>
</tr>
</c:forEach>

</table>
</form>
</body>
<script type="text/javascript">

	
	
</SCRIPT>
</html>